<div class="posts">
  <% posts.each do |post| %>
    <%= render_component :post, as: "post-#{post.id}", settings: { post: post, link_to_post: true } %>
  <% end %>
</div>
